#include<stdio.h>
int main(){
	int i=1,j=1,l=10,a=1,b=9,c=1; 
	for(i=1;i<=10;i++,l=l-(i*2-1))
	{
		for(j=i;j<=10;j++)
		{
			printf(" ");
		}
		while(l<=10)
		{
			printf("*");
			l++;
		}
		printf("\n");	
	}
	while(a<=10)
	{
		
		while(b<=10)
		{
			printf(" "); 
			b++;
 		}
 			while(c<=17)
	 		{
 				printf("*");
 				c++;
 			}
 			a++;
 			b=b-a-1;
 			c=c-(2*b-1);
 			printf("\n");
	 }
 }
